package com.elink.enginerring.news.dao;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import com.elink.enginerring.news.co.NewsCo;
import com.elink.enginerring.news.entity.News;

public interface NewsMapper {
	int deleteByPrimaryKey(String newsId);

	int insert(News record);

	int insertSelective(News record);

	News selectByPrimaryKey(String newsId);

	int updateByPrimaryKeySelective(News record);

	int updateByPrimaryKey(News record);

	List<News> selectNewsList(@Param("nco")NewsCo nco);

	int selectCount(@Param("nco")NewsCo nco);

	@Delete("delete  from news where find_in_set(news_id,#{ids})")
	void del(@Param("ids") String ids);
	
}